package cn.cms.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class SysRole implements Serializable {

    private static final long serialVersionUID = -2239809629520767428L;

    public static final Integer STATUS_DISABLE = 0;//停用
    public static final Integer STATUS_ENABLE = 1;//启用

    private Integer id;
    private Integer pid;
    private String roleName;
    private String menuIds;
    private Integer level;
    private Integer sort;
    private Date createTime;
    private Date updateTime;
    private Integer status;
    private String note;
    private List<SysRole> nodes;

    private String text;// 前台展示名称
    private Boolean selectable;// 指定列表树的节点是否可选择。设置为false将使节点展开，并且不能被选择
    private Map<String, Boolean> state;// 前台展示状态
    private List<String> tags;// 前台展示通过结合全局showTags选项来在列表树节点的右边添加额外的信息

    public Map<String, Boolean> getState() {
        return state;
    }

    public void setState(Map<String, Boolean> state) {
        this.state = state;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Boolean getSelectable() {
        return selectable;
    }

    public void setSelectable(Boolean selectable) {
        this.selectable = selectable;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getMenuIds() {
        return menuIds;
    }

    public void setMenuIds(String menuIds) {
        this.menuIds = menuIds;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public List<SysRole> getNodes() {
        return nodes;
    }

    public void setNodes(List<SysRole> nodes) {
        this.nodes = nodes;
    }

}
